# 导入requests库
import requests
# 请求的URL路径和查询参数
url = "http://httpbin.org/get"
param = {"name":"hbjt"}
# 请求报头
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
}
# 发送GET请求，返回一个响应对象
response = requests.get(url, params=param, headers=headers)
# 查看响应的内容
print(response.text)
